#define _CRT_SECURE_NO_WARNINGS 1



#include<stdio.h>

int main()
{
	double k = 0.0;
	double i = 1.0;
	int n = 0;
	scanf("%lf",&k);
	int j = 0;
	double sum = 0;
	while (sum<=k)
	{	
		double j = 1 / i;
		sum += j;
		n++;
		i++;
	}
	printf("%d", n);
	return 0;
}